home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19960209-19960425 / 000208_news@columbia.edu _Thu Mar 14 22:31:57 1996.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: news@columbia.edu
  2. Received: from apakabar.cc.columbia.edu (apakabar.cc.columbia.edu [128.59.35.159]) by watsun.cc.columbia.edu (8.7.3/8.7.3) with ESMTP id WAA21931 for <kermit.misc@watsun>; Thu, 14 Mar 1996 22:31:57 -0500 (EST)
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.7.3/8.7.3) id WAA14632 for kermit.misc@watsun; Thu, 14 Mar 1996 22:31:56 -0500 (EST)
  4. Path: news.columbia.edu!sol.ctr.columbia.edu!news.msfc.nasa.gov!newsfeed.internetmci.com!swrinde!sdd.hp.com!inn
  5. From: Richard Brodie <brodie@sdd.hp.com>
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Problem with kermit < TAKEFILE
  8. Date: 14 Mar 1996 23:11:51 GMT
  9. Organization: Hewlett-Packard Company
  10. Lines: 37
  11. Message-ID: <4ia93n$ap7@news.sdd.hp.com>
  12. NNTP-Posting-Host: hpsdv050.sdd.hp.com
  13. Mime-Version: 1.0
  14. Content-Type: text/plain; charset=us-ascii
  15. Content-Transfer-Encoding: 7bit
  16. X-Mailer: Mozilla 1.2N (Windows; I; 16bit)
  17.  
  18. I am attempting to use kermit in a PC DOS environment to capture readings
  19. from an instrumentation guage.  This device is connected via a 
  20. multiplexer to the serial port COM1.
  21.  
  22. The following little script file "1.ker" works if I am in kermit and type
  23. TAKE 1.ker
  24.  
  25.                          SET TAKE ECHO ON
  26.                          LOG SESSION value
  27.                          OUTPUT 1\13
  28.                          CLOSE SESSION
  29.                          EXIT
  30.  
  31. It commands the multiplexer to return a reading from the guage that is 
  32. connected to its #1 input port, and when this script has finished,
  33. the reading shows up in the file "value".
  34.  
  35. However, what I ultimately want to do is cause this script to be run
  36. by a command issued with an exec out of a TCL program.  So I need to be 
  37. able to set up a one line DOS command that will do it.  My first attempt
  38. was to set up a file "take_1.ker" containing a single line:
  39.  
  40.                          TAKE 1.ker
  41.  
  42. and then at the DOS prompt type
  43.  
  44.                          kermit < take_1.ker
  45.  
  46. Kermit does get invoked (I wish there were a quiet mode so that the stuff
  47. that always comes out on the screen when you start kermit up could be 
  48. turned off),  The exit command gets executed since I automatically come 
  49. back to DOS.  But the echo doesn't take effect, the session is not 
  50. logged, and the command is not sent out to the multiplexer.
  51.  
  52. I'd appreciate any suggestions.
  53.  
  54.